Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Add pause unpause test #11

Merged
merged 2 commits into from
Jan 29, 2019
Merged

Add pause unpause test #11

merged 2 commits into from
Jan 29, 2019

Conversation

chuanchang
Copy link

@chuanchang chuanchang commented Jan 18, 2019

vendor: update protocol
feature: add pause and unpause remote interface
hack: support pause and unpause feature
test: add testing for pause and unpause feature

Test Result

Running Suite: CRI validation
=============================
Random Seed: 1547802947 - Will randomize all specs
Will run 1 of 82 specs

SSSSSSSS
------------------------------
[k8s.io] Container runtime should support basic operations on container
  runtime should support pause running container [Conformance]
  /root/Workspace/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:102
[BeforeEach] [k8s.io] Container
  /root/Workspace/go/src/github.com/kubernetes-sigs/cri-tools/pkg/framework/framework.go:51
[BeforeEach] [k8s.io] Container
  /root/Workspace/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:65
[BeforeEach] runtime should support basic operations on container
  /root/Workspace/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:74
[It] runtime should support pause running container [Conformance]
  /root/Workspace/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:102
STEP: create container
STEP: Get image status for image: busybox:1.28
STEP: Create container.
Jan 18 17:15:47.946: INFO: Created container "c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2"

STEP: start container
STEP: Start container for containerID: c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2
Jan 18 17:15:48.067: INFO: Started container "c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2"

STEP: Get container status for containerID: c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2
Jan 18 17:15:48.068: INFO: the current state of container: CONTAINER_RUNNING
STEP: pause container
STEP: test pasue running container
STEP: Get container status for containerID: c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2
Jan 18 17:15:48.084: INFO: the state of container after pausing: CONTAINER_CREATED
STEP: unpause container
STEP: test recover pasued container
STEP: Get container status for containerID: c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2
Jan 18 17:15:48.100: INFO: the current state of container after unpausing: CONTAINER_RUNNING
STEP: test stop container
STEP: Stop container for containerID: c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2
Jan 18 17:15:48.218: INFO: Stopped container "c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2"

STEP: Get container status for containerID: c606fd9ac40db1ca0c3cf853e599e5e4cccbb8c135f27d48b57533734a81e6f2
[AfterEach] runtime should support basic operations on container
  /root/Workspace/go/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:78
STEP: stop PodSandbox
STEP: delete PodSandbox
[AfterEach] [k8s.io] Container
  /root/Workspace/go/src/github.com/kubernetes-sigs/cri-tools/pkg/framework/framework.go:52
•SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Ran 1 of 82 Specs in 1.061 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 81 Skipped PASS

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
Signed-off-by: zhuangqh <zhuangqhc@gmail.com>
.travis.yml Show resolved Hide resolved
hack/run-pouch.sh Show resolved Hide resolved
pkg/validate/container.go Show resolved Hide resolved
@zhuangqh
Copy link

thanks @chuanchang merging...

@zhuangqh zhuangqh merged commit 92ff77b into alibaba-archive:release-1.12 Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants